import xlwings as xw
app = xw.App(visible=False, add_book=False)
workbook = app.books.open('F:\\python\\第4章\\出库表2.xlsx')
worksheet = workbook.sheets[0]
area = worksheet.range('A1').expand('table')
a = area.width
b = area.height
print(a, b)
workbook.close()
app.quit()
